package com.lovo.sercive.impl;

import com.lovo.bean.UserBean;
import com.lovo.dao.IUserDao;
import com.lovo.sercive.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserDao dao;

    @Override
    public UserBean login(String userName, String password) {
        return dao.login(userName, password);
    }

    @Override
    public void add(UserBean user) {
        dao.add(user);
    }
}
